include(${CMAKE_CURRENT_SOURCE_DIR}/../setup.cmake)
cmake_minimum_required(VERSION ${REQUIRED_CMAKE_VERSION})
project(demos)
printenv_cmake(${PROJECT_NAME})

if(NOT(${ZBUILD_ENABLE}))
    find_package(catkin REQUIRED COMPONENTS
        appkit    
    )
    catkin_package(
        # INCLUDE_DIRS inc
        LIBRARIES demos
        #  CATKIN_DEPENDS other_catkin_pkg
        #  DEPENDS system_lib
    )
    set(INSTALL_BIN_PATH ${CATKIN_PACKAGE_BIN_DESTINATION})
    set(INSTALL_LIB_PATH ${CATKIN_PACKAGE_LIB_DESTINATION})
    set(INSTALL_INC_PATH ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
    set(INSTALL_SHARE_PATH ${CATKIN_PACKAGE_SHARE_DESTINATION})
    set(BUILD_LINK_LIBRARIES ${catkin_LIBRARIES})
else()
    set(BUILD_LINK_LIBRARIES appkit)
endif()

include_directories(
    ${INSTALL_INC_PATH}
)

add_subdirectory(mini_dump)
